package com.weixing.mall.provider.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.weixing.mall.provider.model.domain.News;
import com.weixing.mall.provider.model.enums.cms.NewsTypeEnum;
import com.weixing.mall.provider.model.query.NewsQuery;
import com.weixing.mall.provider.model.vo.cms.NewsEditVo;
import com.weixing.mall.provider.model.vo.cms.NewsFrontVo;
import com.weixing.mall.provider.model.vo.cms.NewsVo;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * CMS模块-公告资讯表 Mapper 接口
 * </p>
 *
 * @author Small
 * @since 2019-11-18
 */
public interface NewsMapper extends BaseMapper<News> {
    IPage<NewsVo> selectListOfPage(@Param("pg") Page page, @Param("qs")NewsQuery newsQuery);

    NewsEditVo selectNewsEditVoById(long id);

    IPage<NewsFrontVo> selectNewsFrontVoList(@Param("pg") Page page, @Param("qs")NewsTypeEnum type);
}